package theobj;

import java.io.Serializable;

public class BlackCat implements Serializable {
    private static final long serialVersionUID = 1L;
    private String color;
    private String name;

    public BlackCat() {
/*
        super();
        System.out.println("调用黑猫的无参构造");
*/
    }
 
    public BlackCat(String color, String name) {
        this.name = name;
        this.color = color;
//        System.out.println("调用黑猫有 color 参数的构造");
    }
 
    @Override
    public String toString() {
        return "BlackCat{" +
                "name='" + name + '\'' +super.toString() +'\'' +
                '}';
    }
}